public int bigDiff(int[] nums) {
  int min = nums[0];
  int max = nums[0]; 
  for (int num : nums) {
  min = Math.min(min, num); 
  max = Math.max(max, num); 
  }

return max - min;
}